package base.thread_JUC2.chapter02.demo03;

public class TestCase {

    public static void main(String[] args) {

        EventStorage eventStorage = new EventStorage();

        Consumer consumer = new Consumer(eventStorage);
        Thread t1 = new Thread(consumer, "消费者");

        Producer producer = new Producer(eventStorage);
        Thread t2 = new Thread(producer, "生产者");

        t1.start();
        t2.start();

    }

}
